<?php

namespace app\model;

use think\Model;

class CustomerBeiwanglu extends Model
{

    protected $connection = 'mysql';

    protected $pk = 'id';

    protected $name = 'customer_beiwanglu';


    public static function getlist($cid) {
        return self::where(['cid' => $cid])->order('id desc')->select()->toArray();
    }

    public static function getnewone($cid) {
        $ret = self::where(['cid' => $cid])->find();
        if(!empty($ret)){
            $ret = $ret->toArray();
        }
        return $ret;
    }
}
